//
//  PUCollectionViewCell.m
//  iphone-graph
//
//  Created by yuzhuo on 2017/1/3.
//  Copyright © 2017年 yzapp. All rights reserved.
//

#import "PUCollectionViewCell.h"
#import "Constant.h"

@implementation PUCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _contentImg  = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, (SCREEN_WIDTH-50)/3, (SCREEN_WIDTH-50)/3)];
        [self.contentView addSubview:_contentImg];
    }
    
    return self;
}

#pragma mark -SetData

-(void)setData:(UIImage *)data
{
    _data = data;
    self.contentImg.image = _data;
    
}

@end
